package com.yanqu.road.entity.manor;

import com.yanqu.road.entity.DataObject;

import java.math.BigInteger;
import java.util.Objects;

/**
 * @author ：zfr
 * @date ：2021/10/11 16:45
 */
public class FishPondTaskData extends DataObject {
    private long userId;
    private long id;
    private int taskId;
    private int npcId;
    private int textIndex;
    private BigInteger value = BigInteger.ZERO;
    private boolean isGetReward;
    private int eventId;
    private String extendParam="";

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public int getTaskId() {
        return taskId;
    }

    public void setTaskId(int taskId) {
        this.taskId = taskId;
    }

    public int getNpcId() {
        return npcId;
    }

    public void setNpcId(int npcId) {
        this.npcId = npcId;
    }

    public BigInteger getValue() {
        return value;
    }

    public void setValue(BigInteger value) {
        if (this.value.compareTo(value) != 0) {
            this.value = value;
            setUpdateOption();
        }
    }

    public boolean isGetReward() {
        return isGetReward;
    }

    public void setGetReward(boolean getReward) {
        if (isGetReward != getReward) {
            isGetReward = getReward;
            setUpdateOption();
        }
    }

    public int getEventId() {
        return eventId;
    }

    public void setEventId(int eventId) {
        this.eventId = eventId;
    }

    public String getExtendParam() {
        return extendParam;
    }

    public void setExtendParam(String extendParam) {
        if (!Objects.equals(this.extendParam, extendParam)) {
            this.extendParam = extendParam;
            setUpdateOption();
        }
    }

    public int getTextIndex() {
        return textIndex;
    }

    public void setTextIndex(int textIndex) {
        if (this.textIndex != textIndex) {
            this.textIndex = textIndex;
            setUpdateOption();
        }
    }
}
